package com.example.jzg.mvpdemo.base;
/**
 * author: gcc
 * date: 2016/12/2 16:45
 * email:
 */

import android.content.Context;

import com.example.jzg.mvpdemo.baserx.RxManager;

/**
 * author: guochen
 * date: 2016/12/2 16:45
 * email: 
 */
public abstract class BasePresenter <T,E>{
    public Context mContext;
    public E mModel;
    public T mView;
    public RxManager mRxManage = new RxManager();

    public void setVM(T v, E m) {
        this.mView = v;
        this.mModel = m;
        this.onStart();
    }
    public void onStart(){
    };
    public void onDestroy() {
        mRxManage.clear();
    }
}
